Class DiscountUpdate

Description

This Class represents a dataobject for updating a Discount



        
Variable Summary
Variables
int $AmountSpent

The spent amount of the Discount - must be less than or equal to Value when type is `f`

string $Code

The code of the Discount

string $DateCreated

The the date the Discount was created

string $DateExpire

The expiry date of the Discount (empty for none)

int $Id

The id of the Discount

int $Limit

The usage limit of the Discount

int[] $ProductIds

The ids of the products related to this Discount

DiscountCustomerAssociation $DiscountCustomerAssociation

The customer associations related to this Discount

DiscountCustomerGroupAssociation $DiscountCustomerGroupAssociation

The customer group associations related to this Discount

string $Title

The title of the Discount

string $Type

The type of the Discount ('p' for percentage, 'f' for fixed amount, 'fs' for free shipping). Free shipping requires a Growth, Advanced, or Success plan.

int $UseCount

The use count of the Discount

double $Value

The value of the Discount (either percentage of fixed amount according to the Type)

int $Vat

Wether or not the Discount has VAT

dateTime $StartDate

The start date of the discount

bool $IsActive

If the Discount is active

bool $IsRestrictedToNewCustomer

If the Discount is restricted to new customers

double $MinimumCartValue

Minimum cart discount to to make discount applicable

DiscountedProductCategories $DiscountedProductCategories

The Product Category limitations of this Discount. Optional. Only update if the field is set

bool $IsSingleUsePerCustomer

If the Discount is restricted to a single use per customer

int[] $DeliveryMethodIds

The delivery method IDs to associate with this free shipping discount. Optional. Only updated if the field is set. Only applicable when Type is 'fs'.

Documentation generated on Thu, 26 Jul 2018 13:22:46 +0000 by phpDocumentor 1.4.4